<%@codepage="65001"%>
<%session.codepage="65001"%>
<!-- #include virtual=/inc/dbConn.asp -->
<!-- #include virtual=/inc/function.asp -->
<!-- #include virtual=/inc/action.header.inc.asp -->

<%
	'## 파라미터 변수 선언부
	prdNm		= Request("prdNm")
	prdGrp		= Request("prdGrp")
	prdCd		= Request("prdCd")
	etcPrdCd	= Request("etcPrdCd")
	remarks		= Request("remarks")
	compCd		= Request("compCd")
	sourceSize		= Request("sourceSize")
	flag		= Request("flag")
	unitPrice		= Request("unitPrice")

	issueId		= Request.Cookies("S_uid")
	If issueId = "" Then issueId = "tmpJade" End If 
	If prdCd = "" Then prdCd = 0 End If 
	If compCd = "" Then compCd = 0 End If 
	If unitPrice = "" Then unitPrice = 0 End If 

	prdNm		= Replace(prdNm,"'","''")
	etcPrdCd	= Replace(etcPrdCd,"'","''")
	remarks		= Replace(remarks,"'","''")

	
'ALTER PROCEDURE [dbo].[spProduct]
'	@prdNm varchar(100),	-- 제품이름
'	@remarks varchar(100),	-- 비고
'	@part varchar(10),		-- 제품종류
'	@prdCd int,				-- 제품 코드
'	@flag varchar(1)		

	SQLTitle = "-- ■■■■ 제품명 정보 관리 저장 ■■■■"
	SQL = "exec spProduct '" & prdNm & "', '" & prdGrp & "', '" & remarks & "', '" & part & "', " & prdCd & ", '" & etcPrdCd & "', " & compCd & ", '" & sourceSize & "', '" & flag & "', " & unitPrice

	If xMode="debug" Then 
		Call showDebug(SQLTitle,SQL) 
	End If 

'Response.write SQL
'Response.end
	DbCon.Execute SQL

	Call rsWithXML("Save OK!")
%>